#pragma once
#include "AnimalFactory.h"
#include "Animal.h"
#include <vector>
using namespace std;
class Ecosystem
{

private:
	vector<Animal *> animalList;


	Animal animal;
	AnimalFactory animalFactory;

public:
	Ecosystem();
	~Ecosystem();

	void updateEcosystem();

	void intervene(int typeChange);

	void nextDay();

	static Ecosystem* getEcosystem();

	void setObserverList(Animal* animal);

	void delObserverList(Animal* animal);

	void notObserver(int value);

};

